package com.aischool.params;

import com.aischool.utils.StateEnum;

public class BaseParams {

	private int app_id = 0;
	private int org_id = 0;	
	private int class_id = 0;
	private int user_id = 0;
	private int pageNo = 0;
	private int pageSize = 10;
	private int state = StateEnum.ALL.getState();
	private String keywords = "";
	

	public int getAppId() {
		return app_id;
	}
	
	public void setAppId(int v) {
		app_id = v;
	}
	
	
	public int getOrgId() {
		return org_id;
	}
	
	public void setOrgId(int v) {
		org_id = v;
	}
	
	
	public int getClassId() {
		return class_id;
	}
	
	public void setClassId(int v) {
		class_id = v;
	}
	
	
	public int getUserId() {
		return user_id;
	}
	
	public void setUserId(int v) {
		user_id = v;
	}
	
	
	public int getPageNo() {
		return pageNo;
	}
	
	public void setPageNo(int v) {
		pageNo = v;
	}
	
	
	public int getPageSize() {
		return pageSize;
	}
	
	public void setPageSize(int v) {
		if (v>100) {pageSize = 100;}
		else {pageSize = v;}
	}
	
	/**
	 * 状态， 1：启用。-1：删除。 0：无状态，默认
	 * @return
	 */
	public int getState() {
		return state;
	}
	
	public void setState(int v) {
		state = v;
	}
	
	
	public String getKeywords() {
		return keywords;
	}
	
	public void setKeywords(String v) {
		keywords = v;
	}
}
